package com.bjpowernode.crm.commons.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * ClassName:RespCode
 * Package:com.bjpowernode.crm.commons.utils.enums
 * Date:2022/5/31 9:45
 * Description:
 * Author:zsm@zhangshuming.com
 */
@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum RespCode {
    // 1000-1499-->错误内容
    SUCCESS(1000,"请求成功"),
    FAILURE(9999,"请求异常，请稍后重试"),

    // 1500 -->业务状态码
    ACT_PWD_MATCH_ERR(1500,"账号或密码不匹配"),
    ACT_EXPIRE(1501,"账号失效"),
    ACT_LOCKED(1502,"账号锁定"),
    IP_NOT_ALLOW(1503,"ip地址受限"),
    TYPE_CODE_EXISTS(1504,"数据类型字典编码已存在"),
    QUER_NO_DATE(1505,"查询无数据")
    ;

    private Integer code;
    private String text;
}
